# 设置基础镜像
FROM nginx:latest


RUN mkdir -p /usr/share/nginx/html/music-website-master/music-client/html

RUN mkdir -p /usr/share/nginx/html/music-website-master/music-manage/html


# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面
COPY ./music-website-master/music-client/dist/  /usr/share/nginx/html/music-website-master/music-client/html/

COPY ./music-website-master/music-manage/dist/  /usr/share/nginx/html/music-website-master/music-manage/html/


# 用本地的 default.conf 配置来替换nginx镜像里的默认配置
COPY ./music-website-master/frontend.conf /etc/nginx/conf.d/default.conf